package com.easyjava.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * @program: workspace-easyjava
 * @description:
 * @author: cw
 * @create: 2024-05-08 18:13
 **/
public class JsonUtils {

    public static String convertObj2Json(Object obj) {
        if (obj == null) {
            return "";
        }
        return JSON.toJSONString(obj, SerializerFeature.DisableCircularReferenceDetect);
    }
}
